package com.ruoyi.wisdom.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wisdom.mapper.IotPickRecordPicMapper;
import com.ruoyi.wisdom.domain.IotPickRecordPic;
import com.ruoyi.wisdom.service.IIotPickRecordPicService;

/**
 * 记录识别图Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-02
 */
@Service
public class IotPickRecordPicServiceImpl implements IIotPickRecordPicService 
{
    @Autowired
    private IotPickRecordPicMapper iotPickRecordPicMapper;

    /**
     * 查询记录识别图
     * 
     * @param id 记录识别图主键
     * @return 记录识别图
     */
    @Override
    public IotPickRecordPic selectIotPickRecordPicById(Long id)
    {
        return iotPickRecordPicMapper.selectIotPickRecordPicById(id);
    }

    /**
     * 查询记录识别图列表
     * 
     * @param iotPickRecordPic 记录识别图
     * @return 记录识别图
     */
    @Override
    public List<IotPickRecordPic> selectIotPickRecordPicList(IotPickRecordPic iotPickRecordPic)
    {
        return iotPickRecordPicMapper.selectIotPickRecordPicList(iotPickRecordPic);
    }

    /**
     * 新增记录识别图
     * 
     * @param iotPickRecordPic 记录识别图
     * @return 结果
     */
    @Override
    public int insertIotPickRecordPic(IotPickRecordPic iotPickRecordPic)
    {
        iotPickRecordPic.setCreateTime(DateUtils.getNowDate());
        return iotPickRecordPicMapper.insertIotPickRecordPic(iotPickRecordPic);
    }

    /**
     * 修改记录识别图
     * 
     * @param iotPickRecordPic 记录识别图
     * @return 结果
     */
    @Override
    public int updateIotPickRecordPic(IotPickRecordPic iotPickRecordPic)
    {
        iotPickRecordPic.setUpdateTime(DateUtils.getNowDate());
        return iotPickRecordPicMapper.updateIotPickRecordPic(iotPickRecordPic);
    }

    /**
     * 批量删除记录识别图
     * 
     * @param ids 需要删除的记录识别图主键
     * @return 结果
     */
    @Override
    public int deleteIotPickRecordPicByIds(Long[] ids)
    {
        return iotPickRecordPicMapper.deleteIotPickRecordPicByIds(ids);
    }

    /**
     * 删除记录识别图信息
     * 
     * @param id 记录识别图主键
     * @return 结果
     */
    @Override
    public int deleteIotPickRecordPicById(Long id)
    {
        return iotPickRecordPicMapper.deleteIotPickRecordPicById(id);
    }
}
